import instance from "@/http";

/*
* 获取验证码时 抛出异常
*  has been blocked by CORS policy:
*  No 'Access-Control-Allow-Origin' header is present on the requested resource.
*
*  以上异常的抛出是因为该异步请求违背了浏览器中的同源策略
*  什么是同源策略    http://192.168.253.154:8080
*  请求协议      http   https
*  请求ip       192.168.253.154   192.168.253.155
*  请求端口      8080   9090
*   全部相同则符合同源策略
*      源 : http://localhost:8080
*     目标: http://localhost:9090/kgc/captcha
*
*
* */
 const getCaptcha = ()=>instance.get("/captcha")
 export  default  getCaptcha